package com.eastcom.bm.atom;

import javax.persistence.CascadeType;
import javax.persistence.Column;
import javax.persistence.FetchType;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.OneToOne;

import org.hibernate.annotations.GenericGenerator;

public class Atom_SmoothDefine {

	private String id;

	private Atom_DatasetDefine dataset_define;
	
	private Atom_SmoothStrategy integerStrategy;

	private Atom_SmoothStrategy noDataStrategy;

	private Atom_SmoothStrategy kpiStrategy;

	@Id
	@Column(name = "UUID", nullable = false)
	@GenericGenerator(name = "Atom_SmoothDefine-uuid", strategy = "uuid")
	@GeneratedValue(generator = "Atom_SmoothDefine-uuid")
	public String getId() {
		return id;
	}

	public void setId(String id) {
		this.id = id;
	}

	@OneToOne(fetch=FetchType.LAZY,cascade={CascadeType.PERSIST})
	@JoinColumn(name="smoothStrategy_id",referencedColumnName="ID")
	public Atom_DatasetDefine getDataset_define() {
		return dataset_define;
	}

	public void setDataset_define(Atom_DatasetDefine datasetDefine) {
		dataset_define = datasetDefine;
	}

	public Atom_SmoothStrategy getIntegerStrategy() {
		return integerStrategy;
	}

	public void setIntegerStrategy(Atom_SmoothStrategy integerStrategy) {
		this.integerStrategy = integerStrategy;
	}

	public Atom_SmoothStrategy getNoDataStrategy() {
		return noDataStrategy;
	}

	public void setNoDataStrategy(Atom_SmoothStrategy noDataStrategy) {
		this.noDataStrategy = noDataStrategy;
	}

	public Atom_SmoothStrategy getKpiStrategy() {
		return kpiStrategy;
	}

	public void setKpiStrategy(Atom_SmoothStrategy kpiStrategy) {
		this.kpiStrategy = kpiStrategy;
	}
}
